sharebookmarks.onFirefoxLoad = function(event) {
	document.getElementById("contentAreaContextMenu")
		    .addEventListener("popupshowing", 
							  function (e){ 
								sharebookmarks.showFirefoxContextMenu(e); 
							  }, 
							  false);
};

sharebookmarks.showFirefoxContextMenu = function(event) {
	// show or hide the menuitem based on what the context menu is on
	document.getElementById("context-sharebookmarks").hidden = gContextMenu.onImage;
};

window.addEventListener("load", function () { sharebookmarks.onFirefoxLoad(); }, false);
